//package com.com.typhoon.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.io.ClassPathResource;
//import org.springframework.core.io.Resource;
//import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
//import org.springframework.web.servlet.resource.ResourceHttpRequestHandler;
//
//import java.util.Arrays;
//import java.util.Collections;
//import java.util.List;
//
///**
// * @author shuya | dongfeng.zdf@alibaba-inc.com
// * @description
// * @date 2018/10/24 下午7:47
// * @description
// * @modified by
// * @since V2.0.0
// */
//@Configuration
//public class FaviconConfiguration {
//
//    @Bean
//    public SimpleUrlHandlerMapping faviconHandlerMapping() {
//        SimpleUrlHandlerMapping mapping = new SimpleUrlHandlerMapping();
//        mapping.setOrder(Integer.MIN_VALUE);
//        mapping.setUrlMap(Collections.singletonMap("/favicon.ico",
//                faviconRequestHandler()));
//        return mapping;
//    }
//
//    @Bean
//    protected ResourceHttpRequestHandler faviconRequestHandler() {
////        ResourceHttpRequestHandler requestHandler
////                = new ResourceHttpRequestHandler();
////        ClassPathResource classPathResource
////                = new ClassPathResource("images");
////        List<Resource> locations = Arrays.asList(classPathResource);
////        requestHandler.setLocations(locations);
////        return requestHandler;
//        ResourceHttpRequestHandler requestHandler = new ResourceHttpRequestHandler();
//        requestHandler.setLocations(Arrays
//                .  asList(new ClassPathResource("/")));
//        return requestHandler;
//    }
//
//}
